<template>
	<div class="myworks">
		<van-nav-bar title="个人作品" left-text="返回" left-arrow @click-left="ret()" @fixed="false" class="nav"/>
		<!-- 个人作品aaa -->
		<!-- <div class="nav">
			<span @click='ret()' class="icon">
				<van-icon name="arrow-left" />
				返回
			</span>
			<span class="im">个人作品</span>
		</div> -->
		<br /><br />
		<router-view></router-view>
		<!-- <div class="works">
			<div class="time">
				<span class="day">{{sub_day}}</span>
				<span class="ym">{{sub_week}}<br />{{sub_yymm}}</span><br />
			</div>
			<span class="font">{{u_font}}算机能否</span>
		</div> -->
		
	</div>
</template>

<script>
	export default{
		name:'myworks',
		data(){
			return{
				// u_font:'用户上传的文字',				//上传内容
				// sub_day:'',				//当前日
				// sub_yymm:'',				//当前年份和月份
				// sub_week:'',				//当前日期是星期几
				// mine:'',
			}
		},
		created:function(){
			console.log('成功触发事件');
			this.$router.push({path:'Child'});
		},
		methods:{
			ret(){
				this.$router.push({path:'Mine'})
			}
		}
	}
</script>

<style scoped>			/* scoped存在的意义,为了防止路由跳转后样式错乱的问题 */
	.myworks{
		height: 100%;
		background-color: #FAFAFA/* #fcffd1 */;
		margin:0px;
	}
	.nav{
		position: fixed;
		width: 345px;
	}
</style>
